package com.kxf.androidtestdemo.kotlin;

/**
 * @ProjectName: AndroidTestDemo
 * @Package: com.kxf.androidtestdemo.kotlin
 * @ClassName: MyData
 * @Description: java类作用描述
 * @Author: kuangxuefeng
 * @qq: 1024883177
 * @CreateDate: 2021/3/10 14:22
 */
data class MyData(var name : String)

//class MyData2 : MyData

open class A1(x: Int) {
    public open val y: Int = x
}

interface B1 {
    val y : Int
    val x : Int
}

val ab: B1 = object : A1(1), B1 {
    override val y = 15
    override val x = 11
}

fun main(args: Array<String>) {
    println("ab.y=${ab.y}")
    println("ab.x=${ab.x}")
}
